from .MouseListener import MouseListener


class MouseClickListener(MouseListener):
    def __init__(self, callback=None):
        super(MouseClickListener, self).__init__(callback)

    def callback(self, x, y, button, pressed):
        self._callback(int(x), int(y), button, pressed)
        for window in self._maskWindows:
            window.deleteLater()

        return False